<form id="scara-info-form-<?php echo $form->getObject()->getId()?>" class="scara-info-form" action="javascript:void(0)" request="<?php echo url_for($form->request)?>" autocomplete="off">
  <input type="hidden" name="id" value="<?php echo $form->getObject()->getId()?>" />
  <?php echo $form->renderHiddenFields(); ?>
  <div>Completaţi informaţiile referitoare la această scară:</div>
  <table>
    <?php foreach ($form as $field): ?>
      <?php if ($field->isHidden()) continue; ?>
      <tr>
        <td>
          <?php echo $field->renderLabel() ?>
        </td>
        <td>
          <?php echo $field->render() ?>
        </td>
      </tr>
    <?php endforeach; ?>
    
    <tr>
      <td colspan="2" align="right">
        <input type="submit" value="salvează" />
      </td>
    </tr>
  </table>
</form>

<script type="text/javascript">
  ScaraInfoForm.init('scara-info-form-<?php echo $form->getObject()->getId()?>');
</script>

